<script setup lang="ts">
import useMenuStore from "@/store/modules/menus";
import PracticeMenuItem from "./PracticeMenuItem.vue";

const menus = useMenuStore();
</script>

<template>
  <div class="left">
    <el-scrollbar>
      <div class="scrollbar-flex-aside">
        <el-row class="tac">
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            router
            style="width: 185px"
          >
            <PracticeMenuItem v-for="item in menus.children" :data="item" />
          </el-menu>
        </el-row>
      </div>
    </el-scrollbar>
  </div>
  <div class="refreshZone"></div>
</template>

<style lang="scss" scoped>
.left {
  padding-top: 1px;
  height: calc(100vh - 120px);
  border-right: 15px solid;
  border-color: var(--practice-backgroud-color);
  // border-right: 1px solid;
  // border-color: rgb(220, 223, 230);
}

.refreshZone {
  height: 60px;
  width: 100%;
  background-color: var(--practice-backgroud-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.scrollbar-demo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin: 10px;
  text-align: center;
  border-radius: 4px;
  background: var(--el-color-primary-light-9);
  color: var(--el-color-primary);
}
</style>
